package org.dromara.exam.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.exam.domain.entity.ExamAnswer;
import org.dromara.exam.domain.dto.AnswerExamInfo;
import org.dromara.exam.domain.dto.AnswerMetaInfo;
import org.dromara.exam.domain.dto.TemplateSchema;
import org.dromara.exam.enums.ExamExerciseTypeEnum;
import org.dromara.system.domain.vo.SysUserVo;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.util.LinkedHashMap;


/**
 * 答题视图对象 exam_answer
 *
 * @author xiyin321
 * @date 2024-05-24
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = ExamAnswer.class)
public class ExamAnswerVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @ExcelProperty(value = "")
    private Long id;

    /**
     * 项目ID
     */
    @ExcelProperty(value = "项目ID")
    private Long projectId;


    /**
     * 项目内容
     */
    @ExcelProperty(value = "项目内容")
    private TemplateSchema survey;

    /**
     * 暂存答案
     */
    @ExcelProperty(value = "暂存答案")
    private LinkedHashMap<String, Object> tempAnswer;

    /**
     * 答案
     */
    @ExcelProperty(value = "答案")
    private LinkedHashMap<String, Object> answer;

    /**
     * 项目数据
     */
    @ExcelProperty(value = "项目数据")
    private AnswerMetaInfo metaInfo;

    /**
     * 0暂存 1已完成
     */
    @ExcelProperty(value = "0暂存 1已完成")
    private String tempSave;

    /**
     * 考试信息
     */
    @ExcelProperty(value = "考试信息")
    private AnswerExamInfo examInfo;

    /**
     * 考试练习类型
     */
//    @ExcelProperty(value = "考试练习类型")
//    private ExamExerciseTypeEnum examExerciseType;

    /**
     * 考试分数
     */
    @ExcelProperty(value = "考试分数")
    private Double examScore;

    /**
     * 显示顺序
     */
    private int orderNum;

    /**
     * 备注信息
     */
    @ExcelProperty(value = "备注信息")
    private String remark;

    private Date updateTime;

    private Long createBy;

    private SysUserVo user;
    private ExamProjectVo project;
}
